package com.bjsxt.livegoods.login.service.controller;

import com.bjsxt.livegoods.login.service.service.LoginService;
import com.bjsxt.livegoods.login.serviceapi.LoginServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class LoginServiceController implements LoginServiceAPI {
    @Autowired
    private LoginService loginService;

    @Override
    public Map<String, Object> login(String username, String password) {
        return loginService.login(username,password);
    }
}
